|
@ -1353,6 +1353,8 @@ int main(int argc, char** argv) { |
|
|
keypad(stdscr, TRUE); |
|
|
keypad(stdscr, TRUE); |
|
|
// Hide the terminal cursor
|
|
|
// Hide the terminal cursor
|
|
|
curs_set(0); |
|
|
curs_set(0); |
|
|
|
|
|
// Short delay before triggering escape
|
|
|
|
|
|
set_escdelay(1); |
|
|
// Don't block on calls like getch() -- have it ERR immediately if the user
|
|
|
// Don't block on calls like getch() -- have it ERR immediately if the user
|
|
|
// hasn't typed anything. That way we can mix other timers in our code,
|
|
|
// hasn't typed anything. That way we can mix other timers in our code,
|
|
|
// instead of being a slave only to terminal input.
|
|
|
// instead of being a slave only to terminal input.
|
|
@ -1542,6 +1544,12 @@ int main(int argc, char** argv) { |
|
|
// to play being applied as actual playback time
|
|
|
// to play being applied as actual playback time
|
|
|
stm_laptime(&last_time); |
|
|
stm_laptime(&last_time); |
|
|
break; |
|
|
break; |
|
|
|
|
|
// escape, kinda temp hack
|
|
|
|
|
|
case 27: |
|
|
|
|
|
app_state.tui_cursor.w = 1; |
|
|
|
|
|
app_state.tui_cursor.h = 1; |
|
|
|
|
|
app_state.is_draw_dirty = true; |
|
|
|
|
|
break; |
|
|
case KEY_F(1): |
|
|
case KEY_F(1): |
|
|
app_state.grid_scroll_x -= 1; |
|
|
app_state.grid_scroll_x -= 1; |
|
|
app_state.is_draw_dirty = true; |
|
|
app_state.is_draw_dirty = true; |
|
|