Results 1 to 2 of 2

Thread: อยากทราบวิธี clear screen ภาษา C++ บน Unix ครับ

  1. #1
    Junior Member
    Join Date
    Dec 2006
    Posts
    0


    อยากทราบวิธี clear screen ภาษา C++ บน Unix ครับ

    คืออยากทราบว่า ทำอย่างไรครับ

  2. #2
    Administrator asylu3's Avatar
    Join Date
    Jun 2000
    Location
    Thailand
    Posts
    3,557


    Re: อยากทราบวิธี clear screen ภาษา C++ บน Unix ครับ

    วิธีที่ผมทราบมีดังนี้ครับ

    [src]1. system("clear"); //include stdio.h ด้วย
    2. cout<<"033[2j"; //คล้ายกับวิธี clear ใน vi
    2.1 cout<<"033[2J033[H"; //แสดงผลแล้วเลือน cursor มา home[/src]

    เพิ่มเติมใครที่อยากใช้ cls แบบ dos บน unix ก็
    [src]alias cls='echo -n ^[[2J' [/src]
    ต่อไปเวลาใช้ก็พิมพ์ cls เลยใครมีวิธีอื่นก็บอกเพิ่มได้นะครับ...

Similar Threads

  1. แจก Ebook ครับ ภาษา VB.Net
    By noahsark in forum Relax Room
    Replies: 0
    Last Post: 06-09-2009, 12:30 PM
  2. Replies: 1
    Last Post: 10-01-2009, 09:36 PM
  3. Replies: 2
    Last Post: 05-10-2007, 02:34 AM
  4. Replies: 1
    Last Post: 04-10-2007, 04:18 AM
  5. How to clear screen in VC++?
    By asylu3 in forum C/C++,C#,VC++,MFC,Win32
    Replies: 1
    Last Post: 22-11-2002, 07:55 PM

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •