mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-16 21:58:39 -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 () {
|
clear () {
|
||||||
this.term.clearPreserveCursorRow();
|
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 () {
|
getTermDocument () {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue