Will
Will
Thanks for the quick response. > This ignores how wide your terminal is, and could add a newline where it doesn't make sense at all. A better implementation would decide...
Sorry, yes that's what I mean suggestions. I don't get the suggestions or autocomplete though. Unless I comment out the `environ["PWNLIB_NOTERM"]=1` line (or set it to zero). https://github.com/pwndbg/pwndbg/blob/bf091df52781de81b7d4662fc65ce18d11aeecb8/gdbinit.py#L59
Sorry, my initial diagnosis of this was misplaced. I went on a wild ride of debugging, hacking out lots of code to find out what was breaking it. I narrowed...
They actually already have an option for this but it doesn't fix it because autocomplete is already broken by their import statements! Namely fancycompleter, which imports rlcompleter, which imports readline....
There is support in readline for saving and restoring state https://git.savannah.gnu.org/cgit/readline.git/tree/readline.c#n1459 But cpython is doing none of this, it just assumes it's the sole user of readline and blindly re-initializes...
I/we could add a test case that just imports pwndbg and checks for readline in sys.modules? It'd be nice to have something to make sure we notice if it's accidentally...
FWIW: real user here, just hit this issue while manually skipping around tracks with ncspot