mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
Make CMD + K work for all commands, even tail (#215)
This commit is contained in:
parent
af945e064c
commit
112baec8d0
1 changed files with 7 additions and 0 deletions
|
|
@ -87,6 +87,13 @@ export default class Term extends Component {
|
|||
|
||||
clear () {
|
||||
this.term.clearPreserveCursorRow();
|
||||
|
||||
// If cursor is still not at the top, a command is probably
|
||||
// running and we'd like to delete the whole screen.
|
||||
// Move cursor to top
|
||||
if (this.term.getCursorRow() !== 0) {
|
||||
this.term.io.writeUTF8('\x1B[0;0H\x1B[2J');
|
||||
}
|
||||
}
|
||||
|
||||
getTermDocument () {
|
||||
|
|
|
|||
Loading…
Reference in a new issue