
Hi, I'm getting some odd errors running hat under OS X. I'm trying to work with a trivial piece of code to prove that hat is doing sensible things - which at the moment it isn't. When running hat-trail or hat-observe I get the following error:
[host-172-17-2-19:Work/Project/test] tatd100% hat-trail stupid sh: resize: command not found
Fail: user error Reason: Command (resize -u) failed
I originally assumed an incompatibility with my terminal (OS X's Terminal.app), but I receive the same error when using xterm (under Apple's X11 server). I've been searching source files for where they might call the resize command, but can't find it. Any help much appreciated. Thanks Tom Davie

Thomas Davie
Hi, I'm getting some odd errors running hat under OS X.
sh: resize: command not found
`resize' is a shell command related to the xterm application - it reports the current size of the terminal window. It seems that it probably does not exist on MacOS X. If you know of an equivalent shell command, you could replace the sole use of `resize' in the source code to use that command instead, otherwise it is perhaps easiest just to assume a fixed size. The function to change is: getTerminalSize :: IO (Int,Int) in src/hattools/HighlightStyle.hs. One suggestion would be to replace its definition with getTerminalSize = return (80,25) In future, we should alter the configuration script to detect whether `resize' is available and do the right thing. Regards, Malcolm

Thomas Davie
Hi, I'm getting some odd errors running hat under OS X.
sh: resize: command not found
One other thought. It is possible that the `resize' command does exist on MacOS X, but the appropriate location (/usr/X11R6/bin ?) is not in your PATH variable? Regards, Malcolm
participants (2)
-
Malcolm Wallace
-
Thomas Davie