NewLang Project
Yet another programm language
|
#include <pch.h>
Go to the source code of this file.
Macros | |
#define | MAX_OF(x, y) (((x) > (y)) ? (x) : (y)) |
#define | KEY_SPACE 32 |
#define | KEY_TAB 9 |
Functions | |
int | is_ignore_key (int ch) |
int | contain_chars (const char *str, const char *chars) |
short | terminal_width () |
void | color_print (const char *text, COLOR_TYPE color) |
void | clear_line () |
void | set_cursor_x (short x) |
short | get_cursor_y () |
#define MAX_OF | ( | x, | |
y ) (((x) > (y)) ? (x) : (y)) |
Definition at line 41 of file autocomplete.h.
#define KEY_SPACE 32 |
Definition at line 100 of file autocomplete.h.
#define KEY_TAB 9 |
Definition at line 101 of file autocomplete.h.
|
inline |
Function for checking if input character in ignore list
ch | - Input character |
Definition at line 174 of file autocomplete.h.
|
inline |
Function for checking if string contains special characters
str | - Input string |
chars | - Special characters |
Definition at line 198 of file autocomplete.h.
|
inline |
Function for getting current terminal width (cols count)
Definition at line 298 of file autocomplete.h.
Referenced by clear_line().
|
inline |
Printing text with color in terminal
text | - Printable text |
color | - Color for printing |
Definition at line 211 of file autocomplete.h.
|
inline |
Function for clear all content in current line
Definition at line 328 of file autocomplete.h.
References terminal_width().
|
inline |
Set cursor X position in current row
x | - Position for moving |
Definition at line 352 of file autocomplete.h.
References get_cursor_y().
|
inline |
Function for getting current cursor Y position
Definition at line 375 of file autocomplete.h.
Referenced by set_cursor_x().