Check-in [ee22fadb48]
Overview
SHA1:ee22fadb48f2704a15a829b4f5bdd965973d1433
Date: 2014-10-29 18:14:38
User: rkeene
Comment:Removed skipping of "size" request
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2014-10-30
15:52
[b37f8d7df9] Added some basic UNIX commands (user: rkeene, tags: trunk)
2014-10-29
18:14
[ee22fadb48] Removed skipping of "size" request (user: rkeene, tags: trunk)
18:09
[a7c3ea759b] Added basic support for "stty" (user: rkeene, tags: trunk)
Changes

Modified tuapi.c from [774f54baad] to [f152339f63].

  1891   1891   
  1892   1892   	fd = STDIN_FILENO;
  1893   1893   
  1894   1894   	for (idx = 1; idx < objc; idx++) {
  1895   1895   		obj = objv[idx];
  1896   1896   		obj_hash = tuapi_internal_simplehash_obj(obj);
  1897   1897   
  1898         -		if (obj_hash == 0xe7a7d65) { /* size */
  1899         -			continue;
  1900         -		}
  1901         -
  1902   1898   		switch (obj_hash) {
  1903   1899   			case 0xe7a7d65: /* size */
  1904   1900   				ioctl_ret = ioctl(fd, TIOCGWINSZ, &terminal_size);
  1905   1901   				if (ioctl_ret != 0) {
  1906   1902   					Tcl_SetObjResult(interp, Tcl_NewStringObj("ioctl failed", -1));
  1907   1903   
  1908   1904   					return(TCL_ERROR);
................................................................................
  1910   1906   
  1911   1907   				if (retobj == NULL) {
  1912   1908   					retobj = Tcl_NewObj();
  1913   1909   				}
  1914   1910   
  1915   1911   				Tcl_ListObjAppendElement(interp, retobj, Tcl_NewLongObj(terminal_size.ws_row));
  1916   1912   				Tcl_ListObjAppendElement(interp, retobj, Tcl_NewLongObj(terminal_size.ws_col));
         1913  +
  1917   1914   				break;
  1918   1915   			case 0x5bcb0f7: /* -raw */
  1919   1916   			case 0x1cb0f7: /* raw */
  1920   1917   			case 0xdcb8f56f: /* -echo */
  1921   1918   			case 0xcb8f46f: /* echo */
  1922   1919   				ioctl_ret = ioctl(fd, TCGETS, &terminal_information);
  1923   1920   				if (ioctl_ret != 0) {