From 06a6ad8bcafdd2e8a07fdc9c39ad09ab212a95d7 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 30 Oct 2016 12:29:29 +0900 Subject: Update ANSI processor to ignore ^N and ^O This reverts commit 02c6ad0e59be75981baeb1f41cb0bad03aad1c6b. --- src/curses/curses.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/curses/curses.go') diff --git a/src/curses/curses.go b/src/curses/curses.go index e0e728c3..638a8629 100644 --- a/src/curses/curses.go +++ b/src/curses/curses.go @@ -682,13 +682,7 @@ func (w *Window) Erase() { } func (w *Window) Fill(str string) bool { - return C.waddstr(w.win, C.CString(strings.Map(func(r rune) rune { - // Remove ^N and ^O (set and unset altcharset) - if r == 14 || r == 15 { - return -1 - } - return r - }, str))) == C.OK + return C.waddstr(w.win, C.CString(str)) == C.OK } func (w *Window) CFill(str string, fg int, bg int, a Attr) bool { -- cgit v1.2.3