You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
566 B
24 lines
566 B
|
2 years ago
|
# Terminal input rework:
|
||
|
|
|
||
|
|
## How it was:
|
||
|
|
|
||
|
|
```
|
||
|
|
TerminalViewer
|
||
|
|
runShell ---> Thread
|
||
|
|
loop -------> inputGenerator()
|
||
|
|
while input (io read, termio)
|
||
|
|
<---------- yeld inTxt
|
||
|
|
generator.next()
|
||
|
|
```
|
||
|
|
|
||
|
|
## How it should be:
|
||
|
|
|
||
|
|
```
|
||
|
|
TerminalViewer TerminalHelper
|
||
|
|
genPush = _genPush runShell ---> Thread
|
||
|
|
loopRead
|
||
|
|
write(intput) <--------------------- while input
|
||
|
|
genPush.send(input)
|
||
|
|
_genPush
|
||
|
|
out = yeld
|
||
|
|
```
|