minishell/src/treedrawing.h

33 lines
1.3 KiB
C
Raw Normal View History

2025-03-18 12:31:36 +01:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* treedrawing.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/03/18 12:24:25 by khais #+# #+# */
/* Updated: 2025/03/19 13:50:37 by khais ### ########.fr */
2025-03-18 12:31:36 +01:00
/* */
/* ************************************************************************** */
#ifndef TREEDRAWING_H
# define TREEDRAWING_H
# include <stdbool.h>
# include "buffer/buffer.h"
# define CROSS " ├─ "
# define CORNER " ╰─ "
# define VERTICAL " │ "
# define SPACE " "
/* # define CROSS " |- " */
/* # define CORNER " \\- " */
/* # define VERTICAL " | " */
/* # define SPACE " " */
2025-03-19 12:12:51 +01:00
void indent(t_buffer *indent, bool is_last);
void dedent(t_buffer *indent, bool is_last);
2025-03-18 12:31:36 +01:00
#endif // TREEDRAWING_H