Allow scripts to go through the readline backend
commit5c5487f45d606f2756c393ef6fee12617010386d
authorJonas Fonseca <jonas.fonseca@gmail.com>
Tue, 17 Jun 2014 23:19:39 +0000 (17 19:19 -0400)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Tue, 17 Jun 2014 23:19:39 +0000 (17 19:19 -0400)
tree33054c1b950d375d1f4cfa2c93c8b13927fe24a9
parentf5a27c4816cb9fd7e8bd089619923702d7a98965
Allow scripts to go through the readline backend

As a stop gap measure, the readline backend was by-passed during script
execution. This changes the prompt code to allow scripts to interact
with the readline code by decoding the symbolic keys and serving them to
readline as bytes.

Since the script executing is mainly targeting towards the test suite
this will make it possible to test the readline backend. However, it
does cause script behavior to act differently based on whether readline
is supported or not.
include/tig/display.h
src/display.c
src/prompt.c