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:
- changing keyboard firmware in way sends caps-lock on signal in start-up!
- modifying keyboard driver in operation system send os uppercase letters instead of lower-cases.
- 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
Post a Comment