normed most of the line lib
This commit is contained in:
parent
2cfce88274
commit
79e039c94a
12 changed files with 751 additions and 597 deletions
33
line/src/line_editing2.c
Normal file
33
line/src/line_editing2.c
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* line_editing2.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/07/11 18:22:58 by maiboyer #+# #+# */
|
||||
/* Updated: 2024/07/11 18:23:15 by maiboyer ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "line/_line_functions.h"
|
||||
#include "line/_line_internal.h"
|
||||
#include "line/_line_structs.h"
|
||||
|
||||
/* Utility function to avoid specifying REFRESH_ALL all the times. */
|
||||
void line_refresh_line(t_line_state *state)
|
||||
{
|
||||
line_refresh(state, REFRESH_ALL);
|
||||
}
|
||||
|
||||
/* Hide the current line, when using the multiplexing API. */
|
||||
void line_hide(t_line_state *state)
|
||||
{
|
||||
line_refresh(state, REFRESH_CLEAN);
|
||||
}
|
||||
|
||||
/* Show the current line, when using the multiplexing API. */
|
||||
void line_show(t_line_state *state)
|
||||
{
|
||||
line_refresh(state, REFRESH_WRITE);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue