summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/moduos_dupterm.c
Commit message (Collapse)AuthorAge
* extmod/moduos_dupterm: Renamed to uos_dupterm.Paul Sokolovsky2016-10-26
| | | | | | As part of file naming clean up (moduos_dupterm doesn't implement a full module, so should skip "mod" prefix, similar to other files in extmod/).
* extmod/moduos_dupterm: Reuse dupterm_arr_obj for write operations.Paul Sokolovsky2016-07-07
| | | | | Instead of allocating new array object header again and again, causing memory fragmentation.
* extmod/moduos_dupterm: Reserve buffer bytearray object for dupterm.Paul Sokolovsky2016-07-04
| | | | | Allocating it for each read/write operation is a memory fragmentation hazard.
* extmod/moduos_dupterm: Dumpterm subsystem is responsible for closing stream.Paul Sokolovsky2016-05-20
| | | | | | | | Make dupterm subsystem close a term stream object when EOF or error occurs. There's no other party than dupterm itself in a better position to do this, and this is required to properly reclaim stream resources, especially if multiple dupterm sessions may be established (e.g. as networking connections).
* extmod/moduos_dupterm: Don't swallow exceptions in dupterm's read()/write().Paul Sokolovsky2016-04-13
| | | | | | | The idea is that if dupterm object can handle exceptions, it will handle them itself. Otherwise, object state can be compromised and it's better to terminate dupterm session. For example, disconnected socket will keep throwing exceptions and dump messages about that.
* extmod/moduos_dupterm: Handle exceptions in call to dupterm's .write()Paul Sokolovsky2016-01-01
|
* extmod/moduos_dupterm: Make mp_uos_dupterm_tx_strn() function reusable.Paul Sokolovsky2016-01-01
| | | | Function to actually spool output terminal data to dupterm object.
* extmod/moduos_dupterm: Make uos.dupterm() implementation reusable.Paul Sokolovsky2016-01-01
That's just function which sets/gets dup terminal object, and can be easily reused across ports.