[draft] signal CWD change to terminal via OSC-7 (#1148)
[draft] signal CWD change to terminal via OSC-7 (#1148)

* Signal CWD change to terminal via OSC-7

Closes #1147

* Make OSC-7 emission gated by NOX11

* Use newpath variable in gethostname()

Use dynamic memory for hostname

jarun/nnn,jarun/nnn,jarun/nnn,jarun/nnn,jarun/noice,jarun/noice