Skip to content

HOW TO - Set insert as the default in ALL applications, not just on the command line? #677

Answered by chrisant996
jbrown123 asked this question in Q&A
Discussion options

You must be logged in to vote

Clearing up some misunderstandings:

The default in the command line with clink is "insert mode" (vs. overwrite).

The default default in Windows consoles is "insert mode".

I say "default default" because in LNK files you can override the default in the console session started from the LNK file, resulting in a per-console custom default.

However, in CLI applications (notably SQLITE3) the default is OVERWRITE which is super annoying.

CLI applications start out by inheriting the current mode.
But they can call SetConsoleMode to set the mode to use "insert mode" or "overwrite mode".

Clink cannot prevent CLI applications from calling SetConsoleMode and forcing the OS to use "insert mode" or…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@jbrown123
Comment options

@chrisant996
Comment options

@jbrown123
Comment options

@chrisant996
Comment options

@jbrown123
Comment options

Answer selected by jbrown123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Question about something
2 participants