Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Terminal.h
00001 /* mbed Terminal TextDisplay Library 00002 * Copyright (c) 2007-2009 sford 00003 * Released under the MIT License: http://mbed.org/license/mit 00004 * 00005 * Modified by Ned Konz 00006 * to add baud rate setting 00007 * 00008 * Implementation of a TextDisplay using a VT100 Terminal and 00009 * escape codes (e.g. Teraterm, Hyperterminal) 00010 */ 00011 00012 #include "TextDisplay.h" 00013 00014 #ifndef MBED_TERMINAL_H 00015 #define MBED_TERMINAL_H 00016 00017 class Terminal : public TextDisplay { 00018 public: 00019 00020 Terminal(PinName tx, PinName rx); 00021 00022 virtual void character(uint16_t column, uint16_t row, int c); 00023 virtual uint16_t rows(); 00024 virtual uint16_t columns(); 00025 00026 virtual void cls(); 00027 virtual void foreground(uint32_t colour); 00028 virtual void background(uint32_t colour); 00029 virtual void baud(uint16_t newbaud) { _serial.baud(newbaud); } 00030 00031 protected: 00032 00033 Serial _serial; 00034 00035 }; 00036 00037 #endif
Generated on Thu Jul 14 2022 21:44:21 by
1.7.2