diff options
author | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2002-03-03 02:59:16 (GMT) |
---|---|---|
committer | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2002-03-03 02:59:16 (GMT) |
commit | 7bf6833e178696b9815fd4e4c6d1cecc8b46bdd2 (patch) | |
tree | 9da72d3e52c043d4fc5437967ddb9a0f0226b6e9 /Modules/readline.c | |
parent | 38b504e9e3ef3049815779e8c18b62f690ec4ed2 (diff) | |
download | cpython-7bf6833e178696b9815fd4e4c6d1cecc8b46bdd2.zip cpython-7bf6833e178696b9815fd4e4c6d1cecc8b46bdd2.tar.gz cpython-7bf6833e178696b9815fd4e4c6d1cecc8b46bdd2.tar.bz2 |
OS/2 EMX port changes (Modules part of patch #450267):
Modules/
_hotshot.c
dbmmodule.c
fcntlmodule.c
main.c
pwdmodule.c
readline.c
selectmodule.c
signalmodule.c
termios.c
timemodule.c
unicodedata.c
Diffstat (limited to 'Modules/readline.c')
-rw-r--r-- | Modules/readline.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/readline.c b/Modules/readline.c index 9b4d952..94aa1db 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -507,6 +507,10 @@ static void setup_readline(void) { rl_readline_name = "python"; +#if defined(PYOS_OS2) && defined(PYCC_GCC) + /* Allow $if term= in .inputrc to work */ + rl_terminal_name = getenv("TERM"); +#endif /* Force rebind of TAB to insert-tab */ rl_bind_key('\t', rl_insert); /* Bind both ESC-TAB and ESC-ESC to the completion function */ |