Author Topic: vi แล้วเจอ error xterm-256color. [Using open mode]  (Read 2934 times)

golfreeze

  • Administrator
  • Hero Member
  • *****
  • Posts: 2141
    • View Profile
    • นั่งสมาธิ สติปัฏฐานสี่ พาเที่ยววัด แนะนำวัด แจกcd ธรรมะฟรี
    • Email
vi แล้วเจอ error xterm-256color. [Using open mode]
« on: สิงหาคม 26, 2018, 02:05:25 PM »
ถ้าเราเข้า vi ใน os รุ่นเก่าๆ จะเจอปัญหา xterm-256color ครับ
#vi file
xterm-256color: Unknown terminal type I don't know what kind of terminal you are on - all I have is 'xterm-256color'. [Using open mode]

###fixed by แก้ไขโดยเพิ่มการ export TERM=xterm ลงไปด้วยครับ
export TERM=xterm

เสร็จแล้วทำการ vi file อีกรอบ
#vi file