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

libGdx unable to find files in android application data directory -

php - Webix Data Loading from Laravel Link -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -