Overview
| Artifact ID: | f0524bf3963f834d5ef8b791935f69e554266c15 |
|---|---|
| Ticket: | 218747ffffffffffffffffffffffffffffffffff
serial fileevent problem (Windows) |
| User & Date: | nobody on 2000-10-26 01:04:53 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 1980 Bug Version: 8.1.1 SubmitDate: '1999-05-04' LastModified: '1999-07-08' Severity: SER Status: Released Submitter: pat ChangedBy: redman RelatedBugIDs: 2217 OS: Windows 95 Machine: X86 FixedDate: '1999-07-08' FixedInVersion: 8.2b1 ClosedDate: '2000-10-25' Name: Holger Kanwischer Extensions: none CustomShell: none ReproducibleScript: Sample script (simple terminal emulator): proc stdinRead {} { global TTY if {[eof stdin]} { exit } gets stdin Line puts $TTY $Line } proc ttyRead {} { global TTY if {[eof $TTY]} { catch {close $TTY} } else { puts -nonewline [read $TTY] } } set TTY [open "com1:" r+] fconfigure $TTY -blocking 0 -buffering none -translation {auto cr} -mode 19200,n,8,1 fileevent $TTY readable ttyRead fileevent stdin readable stdinRead vwait forever Command line: tclsh81 win-seri.tcl ObservedBehavior: The read command in the fileevent handler ttyRead always returns only one character, even if more characters are in the input buffer of the operating system. This behavior significantly slows down the application. DesiredBehavior: The read command should return all characters from the input buffer. Applied patch provided by Rolf Schroedter. -- 07/08/1999 redman - foundin changed to: "final: 8.1.1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to: "serial fileevent problem (Windows)"
- type changed to: "Bug"