Commit 128cd72
committed
remove _stty_rows, add connection_method
This removes _stty_rows. It was an experiment that I never got to work. The idea was that we could tell a device that we were a 3000 line long terminal and defeat the devices "More" prompt, but no device that I found would accept such a thing. Most devices have a hard coded screen size of xxx lines which shows a more prompt even if it thinks the physical screen is bigger.
For the "connection_method" I decided I wanted a better way to determine the hostname or IP of the device I connect to when parsing script output. Usually I look for the line "Adding this thing to known hosts.." or whatever, but that doesn't work if the device is already in known hosts, or you use telnet, or any number of other things. So now if you turn on --debug it will show a connection string.1 parent 36ff282 commit 128cd72
1 file changed
+8
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
418 | 419 | | |
419 | 420 | | |
420 | 421 | | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | 422 | | |
434 | 423 | | |
435 | 424 | | |
| |||
635 | 624 | | |
636 | 625 | | |
637 | 626 | | |
| 627 | + | |
638 | 628 | | |
639 | 629 | | |
640 | 630 | | |
| |||
691 | 681 | | |
692 | 682 | | |
693 | 683 | | |
694 | | - | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
695 | 690 | | |
696 | 691 | | |
697 | 692 | | |
| |||
0 commit comments