Debian Codegraph @

Changes

raw
1 Revision history for Perl extension IO::Stty
2
3 0.08 Thu Apr 02 2026
4
5 Bug fixes:
6 - Fix Perl 5.8 compatibility: replace // (defined-or) operator with
7 ternary equivalent. The // operator requires Perl 5.10 but
8 MIN_PERL_VERSION is 5.008. (GH #28, GH #29, PR #30, PR #31)
9 - Implement crterase alias (was documented but never coded) and
10 correct dec/crt combination documentation to match actual behavior.
11 (PR #33)
12 - Add exta, extb, and 134.5 baud rate aliases that were documented
13 but silently rejected. (PR #32)
14 - Use _POSIX_VDISABLE for disabling special characters instead of
15 hardcoded 0, fixing 'undef'/'^-' on macOS/BSD where VDISABLE is
16 255. Also fix sane/cooked combos to use 'undef' for eol. (PR #37)
17 - Handle VEOF/VMIN and VEOL/VTIME shared cc slots on Solaris/SVR4
18 systems where these overlap in the termios cc array. (GH #38,
19 PR #42)
20 - Fix _cc_to_hat() to use only _POSIX_VDISABLE, not hardcoded 0/255,
21 preventing wrong <undef> display on Linux and macOS. (PR #46)
22 - Add missing igncr flag to -a display output. (PR #50)
23 - Handle getattr() failure by returning undef instead of silently
24 continuing with zeroed flags. Return setattr() result so callers
25 can detect failure. (PR #36)
26 - Fix broken $private_subs reference in t/99-pod-coverage.t and
27 remove duplicate echok in sane combo expansion. (PR #34)
28
29 Improvements:
30 - Add evenp, oddp, parity, cbreak, and litout combination aliases
31 matching GNU stty behavior. (PR #35)
32 - Add 'speed' query parameter to return just the output baud rate,
33 matching GNU stty behavior. (PR #51)
34 - Document iexten as a settable local flag in POD. (PR #36)
35 - Document AI Policy
36
37 Maintenance:
38 - Add provides metadata to Makefile.PL for correct CPAN indexing,
39 using MM->parse_version() for dynamic version extraction. (PR #47,
40 PR #53)
41 - Add strict/warnings to boilerplate test files. (PR #34)
42 - Clarify in CLAUDE.md that README.md and MANIFEST are generated
43 files and that release prep is human-only. (PR #53, PR #54)
44
45 0.07 Sun Mar 22 2026
46
47 Bug fixes:
48 - Fix "Use of uninitialized value" warning in stty.pl when stdin is
49 not a terminal. stty() returns undef when isatty fails; the script
50 now guards with defined() before comparing. (PR #25)
51 - Fix broken C<-icanon> POD formatting and add missing iexten to sane
52 combination documentation. Replace "Needs documentation" stub with
53 proper docs for show_me_the_crap(). (PR #26)
54
55 Improvements:
56 - Show min and time values in -a output. These are critical for
57 non-canonical (raw/cbreak) mode users and match GNU stty behavior.
58 Also adds functional tests for hat-notation control char assignment,
59 undef/^- char disabling, and min/time setting. (PR #27)
60
61 Maintenance:
62 - Declare MIN_PERL_VERSION 5.008 in Makefile.PL to prevent CPAN from
63 attempting installation on too-old perls. (PR #25)
64 - Add IO::Pty as a test recommends in cpanfile for better test
65 coverage on CPAN testers and CI. (PR #25)
66 - Regenerate README.md from updated POD. (PR #26)
67
68 0.06 Fri Mar 20 2026
69
70 Bug fixes:
71 - Fix show_me_the_crap() emitting "speed baud" (empty speed) when
72 getospeed() returns a value not mapped to any standard POSIX B*
73 constant (e.g. on OpenBSD). Now falls back to the raw numeric value.
74 (GH #19, PR #23)
75 - Display ispeed separately in -a output when it differs from ospeed,
76 using the same raw-numeric fallback for unmapped values. (PR #23)
77 - Fix ispeed test failure on Linux ptys where the kernel normalises
78 ispeed to match ospeed during tcsetattr(). Set both speeds in a
79 single stty() call to avoid the normalisation window.
80 (GH #16, PR #17, PR #21)
81 - Replace // (defined-or) operator in tests with ternary equivalent
82 for Perl 5.8 compatibility. (GH #20, PR #24)
83
84 Improvements:
85 - Recognize --version flag in stty.pl; previously only -v and bare
86 "version" were matched despite the POD documenting --version.
87 (PR #15)
88 - Modernize scripts/stty.pl: add strict/warnings, lexical variables,
89 and a portable shebang. (PR #15)
90
91 Maintenance:
92 - Harden ispeed baud rate test against Linux pty kernel normalisation.
93 (GH #16, PR #21)
94
95 0.05 Wed Mar 19 2026
96
97 Bug fixes:
98 - Fix broken single-arg baud rate setting. Passing a numeric rate like
99 "9600" as the sole argument now correctly sets both ispeed and ospeed.
100 The single-arg code path had two independent if/else blocks instead of
101 one if/elsif chain, so the baud rate was silently never applied. (PR #11)
102 - Replace unsafe symbolic dereference &{"POSIX::B" . $input} in the
103 ospeed/ispeed handlers with a static %BAUD_RATES hash lookup. The old
104 pattern was dead code in all public releases (use strict prevented it
105 from running) but is now properly fixed. Unknown rates produce a
106 warning instead of dying. (PR #7, PR #11)
107
108 Improvements:
109 - Add modern baud rates B57600, B115200, and B230400 with eval guards
110 for platforms that lack them. (PR #9)
111 - Render control characters in hat notation (e.g. ^C, ^D) in -a
112 output instead of raw numeric values. (PR #8)
113 - Add special character value parsing for stty(): accept hat notation
114 (^C), hexadecimal (0x03), octal (003), decimal, and single literal
115 characters when setting control char values. (PR #6)
116
117 Maintenance:
118 - Add functional pty-based test suite using IO::Pty covering flag
119 toggling, -g/-a roundtrips, raw/cooked/sane modes, baud rate setting,
120 and control character assignment. (PR #10)
121 - Add baud rate regression tests with a decoy-function guard against
122 reintroduction of symbolic dereference. (PR #7)
123 - Modernize CI: replace three separate workflow files with unified
124 testsuite.yml using current GitHub Actions. (GH #12, PR #13)
125 - Update stale GitHub URLs (http to https) and modernize CPAN metadata
126 to META spec v2 with TEST_REQUIRES. (PR #14)
127 - Add cpanfile for CI dependency management.
128 - Re-generate README from Stty.pm.
129 - Apply Perl::Tidy formatting.
130
131 0.04 Sat Jan 18 2020
132 - Switch to EU::MM
133 - Address a few deficiencies in the way how the stty() sub processes its arguments
134 - Enable testing on Github actions.
135
136 0.03 Thu May 6 2010
137 - Re-vamp IO::Stty to modern layout
138 - stty.txt moved into POD for module
139 - stty.pl in docs. Die if no params passed to stty
140
141 0.02_01 Tue Mar 23 2010
142 - Re-vamp module to Module::Build
143 - stty.txt merged into POD so it shows up on CPAN
144 - add Changes log
145 - basic tests
146 - die if no parameters passed to stty