cleanup: namespace Montauk (capital M) => montauk::abi
This commit is contained in:
@@ -73,7 +73,7 @@ static void sb_cursor_to(int row, int col) {
|
||||
|
||||
static bool check_keyboard_abort() {
|
||||
if (montauk::is_key_available()) {
|
||||
Montauk::KeyEvent ev;
|
||||
montauk::abi::KeyEvent ev;
|
||||
montauk::getkey(&ev);
|
||||
if (ev.pressed && ev.ctrl && ev.ascii == 'q') return true;
|
||||
}
|
||||
@@ -468,7 +468,7 @@ static void run_pager(WikiLine* lines, int totalLines, const char* title,
|
||||
while (running) {
|
||||
while (!montauk::is_key_available()) montauk::yield();
|
||||
|
||||
Montauk::KeyEvent ev;
|
||||
montauk::abi::KeyEvent ev;
|
||||
montauk::getkey(&ev);
|
||||
if (!ev.pressed) continue;
|
||||
|
||||
@@ -631,7 +631,7 @@ static int run_search(char titles[][256], int count, const char* query,
|
||||
while (true) {
|
||||
while (!montauk::is_key_available()) montauk::yield();
|
||||
|
||||
Montauk::KeyEvent ev;
|
||||
montauk::abi::KeyEvent ev;
|
||||
montauk::getkey(&ev);
|
||||
if (!ev.pressed) continue;
|
||||
|
||||
@@ -838,7 +838,7 @@ extern "C" void _start() {
|
||||
sb_puts("\033[2K\033[1;31mFetch failed. Press any key.\033[0m");
|
||||
sb_flush();
|
||||
while (!montauk::is_key_available()) montauk::yield();
|
||||
Montauk::KeyEvent ev; montauk::getkey(&ev);
|
||||
montauk::abi::KeyEvent ev; montauk::getkey(&ev);
|
||||
continue;
|
||||
}
|
||||
respBuf[respLen] = '\0';
|
||||
@@ -856,7 +856,7 @@ extern "C" void _start() {
|
||||
sb_puts("\033[2K\033[1;31mArticle not found. Press any key.\033[0m");
|
||||
sb_flush();
|
||||
while (!montauk::is_key_available()) montauk::yield();
|
||||
Montauk::KeyEvent ev; montauk::getkey(&ev);
|
||||
montauk::abi::KeyEvent ev; montauk::getkey(&ev);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user