From: BLACKSTONE, J. D. <jda...@ci...> - 2003-05-02 20:17:40
|
> Setting columns would be an option in the stty() > routine, but 'columns' isn't part of the POSIX terminal spec, > so isn't supported by stty(), which uses the POSIX library > for terminal handling. Thus the ugly kludge. You could subclass and add features to stty... ODBC handles varying database SQL features by first attempting to preparse the SQL and then, if that fails, just functioning as a passthrough to the database's SQL parser. Maybe stty could someday (given enough tuits) work that way. > Net::Telnet may save you here because it doesn't filter > through a terminal at all. Come to think of it, you could > probably just use open2 to start telnet without a terminal, > then use Expect on the filehandles open2 returns. If you could do that, then you could probably just open a socket or IO::Socket or something, which might be a little cleaner. I think I took that route once when I wasn't having luck figuring out how to use Net::Telnet with Expect.pm. > Anyway, that's probably as much talk about globs and > terminals that anyone can handle this week. :-) Nah! We're just getting started!! jdb *Apologies for this mail being in HTML; our mailserver seems to convert all plain text outgoing mail without my consent.* |