working on the file system

cd can now display folders in blue
This commit is contained in:
2025-02-23 23:13:05 -05:00
parent 86982c9b96
commit 3640f022f6
7 changed files with 60 additions and 24 deletions

View File

@ -26,6 +26,12 @@ function stdout_grid<T extends HTMLElement>(left: string[], right: string[], hea
return wrap_indicator
}
function stdout_horizontal_elements<T extends HTMLElement>(elements: T[]) {
const h_elements_out = horizontal()
h_elements_out.append(...elements)
return h_elements_out
}
function stdout_horizontal(strs: string[]) {
const p = create("p")
strs.forEach((str, i) => {
@ -48,7 +54,8 @@ export default function stdout(str: string) {
}
export {
stdout_grid,
stdout_horizontal_elements,
stdout_horizontal,
stdout_grid,
stdout_bold
}