Comments (3)
From [email protected] on July 14, 2012 10:54:34
What you are seeing in normal Windows behaviour and not related to the presence of clink.
A console window's properties can get set from multiple places. Either the global default properties, from the shortcut's properties, or possibly from a registry entry tied to the executable (I'm less certain about this last one). The shortcut/executable properties override the default ones if they exist.
If at any point you set a console window's current properties (not the default properties), Windows will save those properties with the shortcut/executable and use those properties instead of the default ones for future sessions.
Notice that in your repro steps you set default properties but check the window's properties to verify but as we've discussed, these properties may not have come from the default set. As such you can't compare default properties against current properties. Only tests of default/default and current/current are valid pre/post injection of clink.
Hope that clears things up at least a little. Windows' behaviour is quite strange and hard to explain clearly.
Status: Invalid
from clink.
From [email protected] on July 17, 2012 05:23:18
I would like to respectfully disagree on some points. Yes, Windows
behaviour is strange. Of this fact there is no debate.
I have a pre-existing shortcut that starts up cmd.exe with window, buffer
size, colors, (sorry - colours) etc., including QuickEdit enabled.
-
Close all cmd.exe windows, install clink, open the window from the
shortcut, open "Properties" (not "defaults") and the QuickEdit checkbox is
off. ALTHOUGH the QuickEdit mode does seem to be enabled - if I click
& drag in the window it selects text. -
Close the window (with no other property changes), uninstall clink, open
the window from the shortcut, open Properties. The QuickEdit checkbox is
set.
Empirical evidence kind of points to clink being involved here in some way,
although maybe not to the extent of the initial bug.
cheers & thanks. it is a fantastic addition to my tool set!!
jeff
from clink.
From [email protected] on July 22, 2012 05:55:36
I'm still unable to reproduce this. It would be great if you could boil the issue down to some explicit steps that exhibit different behaviour depending on whether clink is install or not. As I'm using Win7 which introduced a new way of handling console windows (conhost.exe) so it's possible this issue is specific to earlier versions of Windows.
While looking into this I found what I was trying to recall in my last comment about the registry. In Win7 at at least, Windows caches the properties for a console app shortcut in the registry by name. If you create another shortcut elsewhere with the same name it will use the cached properties. It also works if you delete the shortcut and recreate it with the same name.
This could perhaps be confusing so it's worth clearing out the cache if you're comfortable deleting keys from the registry (and this caching "feature" is present in Vista). The key in question is here;
HKEY_CURRENT_USER\Console
Great to hear you're finding clink useful!
from clink.
Related Issues (20)
- Windows 11 support HOT 2
- Keys inoperable -- ESC key and shortcut keys for new console feature HOT 4
- Mix Tab function between win and unix HOT 1
- clink under Windows 11 does not seem to properly hook readline HOT 2
- CLink not working on Windows 11 HOT 4
- clink info command not working in cmd in Windows 11 HOT 1
- Issue created by mistake. Feel free to delete it.
- Multiple window management / state HOT 1
- Arrow Key Command History Navigation Not Working Using Windows 10's Built-in 'Touch Keyboard' HOT 2
- Mouse click HOT 8
- Clink doesn't work in `wine cmd` HOT 1
- clink portable file doesnt autocomplete HOT 1
- Copy paste repeats 2nd char HOT 1
- Clink does setup the autorun option correctly when an "if exists"-statement is in autorun Registry Key HOT 5
- Ctrl-D no longer exits HOT 1
- make installer works without admin rights HOT 1
- 🚨 👉 👉 👉 REPO MOVED HOT 5
- Martin are you back? HOT 5
- Is there a flag similar to cmd `/c` used to execute a single command HOT 1
- Cycle Auto-Complete Options HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clink.