Skip to content

Commit d22ea37

Browse files
authored
Merge pull request jupyter-xeus#143 from MCWertGaming/remove_termsize_slow
removed get_term_size_slow()
2 parents 3315e2d + 1dd3ef7 commit d22ea37

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

cpp-terminal/base.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff 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

144128
Term::Terminal::Terminal(bool _clear_screen,
145129
bool enable_keyboard,

cpp-terminal/base.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,6 @@ void save_screen();
105105

106106
void 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
112109
class Terminal : public Private::BaseTerminal {
113110
private:

0 commit comments

Comments
 (0)