IUBio

MAC and SEQED

David Mathog mathog at seqvax.caltech.edu
Fri Feb 4 17:23:00 EST 1994


In article <1994Feb3.093929.8009 at nic.funet.fi>, harper at nic.funet.fi (Rob Harper) writes...
>The Mac user are complaining that arrow and sometimes
>control keys do not work properly in gcg programs.
>Typically you get a D and a C printed when using the 
>left and right cursor keys
> 
>For example in the case of seqed it is impossible to move along the sequence
>with arrow keys. The same thing works from a PC. Both computers are using
>Telnet. Mac Telnet version number is 2.5.
> 
>Any ideas?
> 

Yup, been there.  Look after the signature for various fixes.

Some of this came from suggestions from GCG and some is local.
No warranties, of course.  You may pass this stuff around freely.

Good luck,

David Mathog
mathog at seqvax.bio.caltech.edu
Manager, sequence analysis facility, biology division, Caltech 
--------------------------------------------------
SAF_NOTES

  11_NCSA_Telnet/MacIP

    As some of you have pointed out, these public domain terminal emulators may
    or may not work correctly with the GCG editors Seqed and GelAssemble.
    (Even though they appear to work correctly everywhere else).

    The following commands should fix the problem with the cursor keys:

     $MacIP         (If you are using MacIP4)

       or

     $NCSA          (If you are using NCSA Telnet)

    If you put one or the other of these in your LOGIN.COM you will be
    automatically set up to use the corresponding emulator.  Only do this
    if you ALWAYS use the same emulator.

    (If you don't know what an ASCII is don't bother reading the rest of this.)

    If you STILL have problems, you may be able to figure out what is going on
    by using the (new) utility GCGTERMTEST.  This dumps either the ASCII
    strings sent by the terminal or the internal GCG key codes that represent
    them.  Hit the problem keys on a known working emulator, then repeat the
    experiment on the problem emulator.  This should turn up either that the
    emulator is generating the wrong ASCII strings, or that the GCG program is
    misinterpreting them.
--------------------------------------------------
$ sho sym ncsa
  NCSA == "@GCGEXCOM:FIXNCSA.COM"
$ sho sym macip
  MACIP == "@GENSITECOM:RESETCURSOR"
$ sho sym gcgtermtest
  GCGTERMTEST == "$PRGDISK:[SHARED.PROGRAMS]GCGTERMTEST"
--------------------------------------------------
$! FIXNCSA.COM
$! 9-APR-1992 By David Mathog
$!
$!  Makes NCSA Telnet (Mac version) work correctly with Seqed/Gelassemble
$!**************************************************
$ set term/inquire
$ set term/application
--------------------------------------------------
$! Mathog 9-Apr-1992
$! From GCG: This fixes the problem with MacIP cursor's not working
$! it is [?1l (lower case L) NOT [?11
$!
$ ESC[0,8] = %x1B
$ OPEN/WRITE TempTerm TT
$ Write TempTerm ESC + "[?1l"
$ Close TempTerm
--------------------------------------------------
c	GCGTERMTEST.FOR
C	9-APR-1992 D. Mathog, Caltech
c	This little program returns the codes seen by the GCG
c	program when keys are hit - useful for debugging emulator
c	problems
c
c	be sure to link in the GCG libraries!
c
c	**************************************************
	implicit none
	logical flag
	integer val
	logical twinit,systerinit
	integer twgetkey,systergetkey
	character*1 get_ch,ctemp
	external twinit,twgetkey,systergetkey,systerinit
	external get_ch
c
	write(6,*)'GCGTermTest'
	write(6,*)'  Your options are:'
	write(6,*)'  0  Return ASCII Key codes (default)'
	write(6,*)'  1  Return GCG SysTer Key codes'
	write(6,*)'  2  Return GCG TW Key codes'
	read(5,*)val
	write(6,*)'Hit a ^Y (control and Y) to exit'
	write(6,*)'decimal, hex, octal values = '
	write(6,*)' '
	if(val.eq.1)then
	  call SysTerInit
	  do while(.true.)
	     val = SysTerGetKey()
	     write(6,'(i4,z4,o4)')val,val,val
	  end do
	else if(val.eq.2)then
	  call twinit
	  do while(.true.)
	     call twgetkey(val)
	     write(6,'(i4,z4,o4)')val,val,val
	  end do
	else
	  do while(.true.)
	     val=ichar(get_ch(ctemp))
	     write(6,'(i4,z4,o4)')val,val,val
	  end do
	end if
	stop
	end
--------------------------------------------------



More information about the Info-gcg mailing list

Send comments to us at biosci-help [At] net.bio.net