mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
v0.3.9
This commit is contained in:
+2
-16
@@ -1,17 +1,3 @@
|
||||
import readline
|
||||
from typing import cast, Literal
|
||||
|
||||
def startup_hook():
|
||||
readline.insert_text('from startup_hook')
|
||||
|
||||
def pre_input_hook():
|
||||
readline.insert_text('from pre_input_hook')
|
||||
readline.redisplay()
|
||||
|
||||
readline.set_startup_hook(startup_hook)
|
||||
readline.set_pre_input_hook(pre_input_hook)
|
||||
readline.parse_and_bind('tab: complete')
|
||||
|
||||
line = ''
|
||||
while line != 'stop':
|
||||
line = input('!("stop" to quit) Ввод текста: => ')
|
||||
print (f'Отправка: {line}')
|
||||
print(cast(Literal['-', '--', '---'], '----'))
|
||||
Reference in New Issue
Block a user