uppercase - readline: Convert input to upper case on screen as it is typed -


how can instruct readline convert keyboard intput upper case, typed, , have echo terminal?

(related, python: convert input upper case on screen typed — asks different question trying achieve similar result. not python-specific question, not duplicate of one.)

the program i'm writing (which python 3 code, if matters) uses readline library command line input, implementing conversion of each keystroke not option. i'm looking way requesting readline library me.

the existing commands upcase-word , downcase-word user invoke, deliberately change case of text typed. isn't need; instead want text changed it's typed in.

you have 3 options guess:

  1. changing keyboard firmware in way sends caps-lock on signal in start-up!
  2. modifying keyboard driver in operation system send os uppercase letters instead of lower-cases.
  3. modifying source code of shell see result of typing inside, in way show upper-cases always.

you can't aim goal using program running!


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -