stty character?

Discussion in 'Mac Programming' started by jamesapp, Sep 30, 2009.

  1. jamesapp macrumors 6502a

    Joined:
    Mar 7, 2008
    #1
    Hello,
    I am trying to use stty to append a NUL character to a unix session? I have tried the following:
    *stty ofill nl1
    that is stty ofill en-el-one
    I ran the above command and got back a terminal prompt. My questions are: 1. Does stty reset after exiting terminal? Like I ran the command which is supposed to append a NUL character, when I exit terminal and restart my shell, would this command still be in effect? Or do I have to reenter it? I don't want to have two NUL characters? 2. Does anyone know what the NUL fill character is for ofill and stty?
     
  2. BertyBoy macrumors 6502

    Joined:
    Feb 1, 2009
    #2
    Yes, when the stty is lost in any session other than the current one.

    So you'll need to put the stty ofill nl1 into your .bashrc, or the config file for whatever shell you use. Depends on your flavour of OSX, 10.3 defaults to bash, as I remember 10.2 was something else. If I could get on my MP, I could tell you what 10.5 and 10.6 are. Use "echo $SHELL" in Terminal to find out if you're unsure.
     
  3. jamesapp thread starter macrumors 6502a

    Joined:
    Mar 7, 2008
    #3
    I was reading the man page for stty and I came across
    ofdel (-odell)
    Use DELs (NULs) as fill characters.

    ofill (-ofill)
    Use fill characters (use timing) for delays.

    I don't fully understand this, I am wondering if I use -odell will that automatically use NUL characters as fill characters? Or do I set it up for fill characters and then use ofill, and try to figure out what the fill character is for NUL? Any help would be appreciated.
     

Share This Page