File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ public struct AnsiCodes {
45
45
/// The following line is a hack. It is the only reliable way I could get "Terminal.app" on
46
46
/// macOS to return to the beginning of the line
47
47
public static let beginningOfLine : String = cursorBackward ( 3000 ) + cursorBackward( 999 )
48
+ public static let endOfLine : String = cursorForward ( 3000 ) + cursorForward( 999 )
48
49
49
50
/// Clear screen
50
51
public static let clearScreen : String = escapeCode ( " 2J " )
Original file line number Diff line number Diff line change @@ -610,16 +610,12 @@ public class LineReader {
610
610
private func moveLeft( editState: EditState ) throws {
611
611
if editState. moveLeft ( ) {
612
612
try self . updateCursorPos ( editState: editState)
613
- } else {
614
- self . ringBell ( )
615
613
}
616
614
}
617
615
618
616
private func moveRight( editState: EditState ) throws {
619
617
if editState. moveRight ( ) {
620
618
try self . updateCursorPos ( editState: editState)
621
- } else {
622
- self . ringBell ( )
623
619
}
624
620
}
625
621
@@ -658,8 +654,6 @@ public class LineReader {
658
654
private func deleteCharacter( editState: EditState ) throws {
659
655
if editState. deleteCharacter ( ) {
660
656
try self . refreshLine ( editState: editState)
661
- } else {
662
- self . ringBell ( )
663
657
}
664
658
}
665
659
You can’t perform that action at this time.
0 commit comments