home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 6749 < prev    next >
Encoding:
Text File  |  1992-07-26  |  3.6 KB  |  70 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!murphy!fortony
  3. From: fortony@sonne.cso.uiuc.edu
  4. Subject: various questions and answers
  5. Message-ID: <fortony.712213298@murphy>
  6. Originator: fortony@murphy
  7. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  8. Organization: University of Illinois at Urbana
  9. Date: Mon, 27 Jul 1992 05:01:38 GMT
  10. Keywords: weird behavior
  11. Lines: 57
  12.  
  13. Contents: *more* questions about rc/termcap, and answers about X
  14.  
  15. Does anyone with some free time have /bin/rc compiled?  I've managed to get
  16. it completely functional, but there seems to be some deviant behavior
  17. it and control characters which I can't figure out.  My .rcrc file 
  18. contains "echo blah" "stty erase ^V^H" (the real backspace character, that 
  19. is), and "stty", in that order.  When I log in, I see 'blah', a listing
  20. from stty including erase being mapped to ^H, and the prompt.  However,
  21. hitting the ^H key performs a non-destructive backspace at that point.  
  22. I type "stty erase [backspace]" by hand, and from then on, everything works
  23. fine.
  24.  
  25. But then, I start up X, and my xterms start up with rc set up to act like a
  26. login shell, and the stty erase ^V^H in the .rcrc file *works* to create
  27. a destructive backspace.  Which is great, right?  I'll just never leave X --
  28. but now ^C in a program executed under rc (xmartin, for instance) doesn't
  29. kill xmartin *or* rc, but the *xterm* they're executed in.  I guess I don't
  30. get it.  I looked at the termcap file, but everything looks alright.  Does
  31. anyone else have experience with bugs in this area?
  32.  
  33.  
  34. I've found that clock.exe is not a useful utility.  It has two main bugs which
  35. are a pain in the modern world:  First, it's case sensitive, which means that
  36. clock et4000 doesn't tell you the right information, while clock ET4000 does.
  37. Secondly, my upper clocks are variable.  This seems to be reasonably common.
  38. The usual environment I would execute clock.exe in is a 24*80 DOS session.  The
  39. usual environment I use in Linux in text mode is 40*100.  Now, the *sneaky*
  40. thing is, the more resolution I demand of Linux's text mode, the *lower*
  41. my clocks go.  So at 24*80, I have a clock which zips along at 88, and at
  42. 50*132, that clock is (for some reason) at 11.
  43.  
  44. So how do you determine clocks?  Well, this worked for me: comment out your
  45. Clocks line in your Xconfig file, forcing X386 to figure it out all by itself.
  46. Then type 'startx 2> /usr/lib/X11/Xclocks'.  It's entirely possible that your
  47. screen will go nuts and you will not get anything close to X.  At this point,
  48. though you don't believe it, you're at your standard Linux prompt, but the
  49. screen will be completely screwed.  Type 'sync' and 'reboot'.  Note that all
  50. of this assumes you're root.  It's possible to do this as not-root, but I
  51. can't think of a standardized world-writable directory, so just follow the
  52. directions above.
  53.  
  54. X386 prints its clock guesses to stderr.  The above redirects stderr to a file.
  55. Since X386 terminates after finding wrong clocks, the file gets closed just
  56. fine.  However, you want to sync to be sure.  After the reboot, examine the
  57. file you've created (/usr/lib/X11/Xclocks) and copy those clock values into
  58. your Xconfig file.
  59.  
  60. NOTE: for people with cards like mine, you will want to repeat the above
  61. for EACH OF THE POSSIBLE VALUES OF STARTING SVGA MODE -- INCLUDING NONE
  62. (pressing a key to continue).  I find that I get my best clocks if I do not
  63. press return to see the other modes, but rather go on in 24*80 text mode.
  64.  
  65. G'luck!
  66.  
  67. -- 
  68. a b c d e f g h i j k l m n o p q r s t u v w x y z
  69. Felix Sebastian Ortony    fortony@murphy.gis.uiuc.edu
  70.