File tree Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Expand file tree Collapse file tree 2 files changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -124,22 +124,6 @@ void Term::get_cursor_position(int& rows, int& cols) {
124124 throw std::runtime_error (
125125 " get_cursor_position(): result not found in the response" );
126126}
127- // TODO: repair or remove
128- // void Term::get_term_size_slow(int& rows, int& cols) {
129- // struct CursorOff {
130- // const Terminal& term;
131- // explicit CursorOff(const Terminal& term) : term{term} {
132- // write(cursor_off());
133- // }
134- // ~CursorOff() { write(cursor_on()); }
135- // };
136- // CursorOff cursor_off(*this);
137- // int old_row{}, old_col{};
138- // get_cursor_position(old_row, old_col);
139- // write(move_cursor_right(999) + move_cursor_down(999));
140- // get_cursor_position(rows, cols);
141- // write(move_cursor(old_row, old_col));
142- // }
143127
144128Term::Terminal::Terminal (bool _clear_screen,
145129 bool enable_keyboard,
Original file line number Diff line number Diff line change @@ -105,9 +105,6 @@ void save_screen();
105105
106106void get_cursor_position (int &, int &);
107107
108- // This function takes about 23ms, so it should only be used as a fallback
109- void get_term_size_slow (int &, int &);
110-
111108// initializes the terminal
112109class Terminal : public Private ::BaseTerminal {
113110 private:
You can’t perform that action at this time.
0 commit comments