IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an
email to Administrator. User accounts are meant only to access repo
and report issues and/or generate pull requests.
This is a purpose-specific Git hosting for
BaseALT
projects. Thank you for your understanding!
Только зарегистрированные пользователи имеют доступ к сервису!
Для получения аккаунта, обратитесь к администратору.
* Allow defining term_size via PUDB_TERM_SIZE env var
* Add doc
* Fix flake8 issue
* Describe the terminal size precedence
* Mention the PUDB_RDB_HOST and PUDB_RDB_PORT as well
* Fail on invalid PUDB_TERM_SIZE
* Remove dependence on telnetlib which was removed from Python 3.13
Only some constant values were being used so those values were copied
into remote.py instead of being referenced from telnetlib.
* Replace bytes function calls with bytes literals
After executing a command, immediatly hitting the arrow up key should
recall the just executed command again, like in all shells.
This commit ensures this behavior by clearing out the saved edit text on
successful command execution.
Previously, it recalled the last saved edit text if set, which is an
annoying workflow break compared to other shells.
There is the
- command history, which stores previously executed commands
- result scrollback, which refers to list of shell prompts and their
results
The latter one was previously called 'command line history'.
To avoid confusion, this commit introduces a major new term.
Text input to the internal command line is now restored and not lost
after browsing the history. It is designed to behave just like a
dedicated history item at the end of the history. This matches the
behavior of readline in most shells.
For example, writing a command without executing it, then moving up to
the most recent history item and down again restores the typed command.
The pudb special behavior of clearing the command when moving down from
the end of the history is also preserved. In that case the text can be
restored too by moving up in the history again before typing anything
new.
This is akin to using Ctrl-C in common shells to clear the current
command, but with the ability to restore the input again.
Using the clear button which empties the displayed shell history now
also clears the command input, since it can be easily restored.
This fixes one of my pain points with the internal pudb command line:
When writing a lengthy command, accidentally hitting Ctrl-N or Ctrl-P
overwrites the input text field with no possibility to get the content
back.
This is particularly bad after using vim's word completion with Ctrl-N
for an extensive amount of time, and then accidentally hitting the same
shortcut in pudb instead of tab completion.