enhance-terminal first draft / fix $> missing on line 299