Added support for paste to the VT100, but browser idiosyncrasies (eg, Chrome) are proving irksome; for now, you'll have more luck with Firefox, or sticking to machines that use a textarea for their I/O instead the VT100 if you need to do a lot of pasting

This commit is contained in:
Jeff Parsons 2016-11-25 18:28:57 -08:00 • committed by Jeff Parsons
commit 66f82736c9
6 changed files with 417 additions and 364 deletions

View file

@ -751,7 +751,7 @@ SerialPort8080.prototype.transmitByte = function(b)
};
/**
* transmitData()
* transmitData(sData)
*
* Helper for clocking transmitted data at the expected XMIT_RATE.
*
@ -759,10 +759,16 @@ SerialPort8080.prototype.transmitByte = function(b)
* set XMIT_READY (and XMIT_EMPTY), which signals the firmware that another byte can be transmitted.
*
* @this {SerialPort8080}
* @param {string} [sData]
* @return {boolean} true if successful, false if not
*/
SerialPort8080.prototype.transmitData = function()
SerialPort8080.prototype.transmitData = function(sData)
{
this.bStatus |= (SerialPort8080.UART8251.STATUS.XMIT_READY | SerialPort8080.UART8251.STATUS.XMIT_EMPTY);
if (sData) {
return this.sendData? this.sendData.call(this.connection, sData) : false;
}
return true;
};
/**