LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-13-2019, 04:18 AM   #1
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,831
Blog Entries: 1

Rep: Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069
script's typescript output is littered with ANSI strings


Regardless which distro I use, ANSI sequences litter typescript files, which makes them hard to read, and hard to copy and paste from. Is there a way to have the ANSI sequences omitted? If not, is there some simple way to strip them? Is there a better utility to capture screen output?
 
Old 10-13-2019, 04:41 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by mrmazda View Post
Regardless which distro I use, ANSI sequences litter typescript files, which makes them hard to read, and hard to copy and paste from. Is there a way to have the ANSI sequences omitted? If not, is there some simple way to strip them? Is there a better utility to capture screen output?
Quote:
TypeScript is a language for application scale JavaScript development
Now I understand even less.
What exactly is happening?
Where do these files come from, how are you reading them, what "ANSI sequences" are you seeing, and what put those sequences in there?
 
Old 10-13-2019, 04:47 AM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,831

Original Poster
Blog Entries: 1

Rep: Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069
Code:
# which script
/usr/bin/script
# rpm -qf /usr/bin/script
util-linux-2.33.1-lp151.3.3.2.x86_64
Quote:
DESCRIPTION
script makes a typescript of everything displayed on your terminal

Last edited by mrmazda; 10-13-2019 at 04:49 AM.
 
Old 10-13-2019, 06:11 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
I see.
The way I understand it, this is the normal and desired behaviour.
Problem: I cannot replay the typescript with "scriptreplay typescript".
In any case, 'cat typescript' works as expected.
Also take a look at this:
https://unix.stackexchange.com/quest...-script-output
 
Old 10-14-2019, 01:50 AM   #5
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,831

Original Poster
Blog Entries: 1

Rep: Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069Reputation: 2069
That's a long, involved thread. "scriptreplay typescript" here always generates a line 1 unexpected format error. Redirecting cat output to a file doesn't seem to produce much less ansi string litter.
 
  


Reply

Tags
shells



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: TypeScript: First Impressions LXer Syndicated Linux News 0 10-03-2012 11:00 AM
[SOLVED] How do I open a typescript file? LAPIII Linux - Newbie 4 01-28-2012 04:32 PM
LXer: Damn Vulnerable Linux is Littered with Security Holes LXer Syndicated Linux News 0 07-30-2010 03:00 PM
pause displaying typescript rsashok Linux - General 2 11-16-2007 12:38 PM
about typescript AmphetaminePhreak Linux - Newbie 1 08-01-2006 03:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration