CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 07 Aug 2025 01:55:18 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20091124165301
location: https://web.archive.org/web/20091124165301/https://github.com/nex3/ruby-progressbar/issues
server-timing: captures_list;dur=0.607193, exclusion.robots;dur=0.021093, exclusion.robots.policy;dur=0.010764, esindex;dur=0.011006, cdx.remote;dur=626.657553, LoadShardBlock;dur=411.829591, PetaboxLoader3.datanode;dur=66.590816, PetaboxLoader3.resolve;dur=212.190639
x-app-server: wwwb-app219
x-ts: 302
x-tr: 1089
server-timing: TR;dur=0,Tw;dur=508,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app219; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Thu, 07 Aug 2025 01:55:20 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Tue, 24 Nov 2009 16:52:58 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "7f2dcf69133e8bb22d763f14ad414c16"
x-archive-orig-x-runtime: 108ms
x-archive-orig-content-length: 30416
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Tue, 24 Nov 2009 16:53:01 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Fri, 18 Sep 2009 03:51:31 GMT", ; rel="prev memento"; datetime="Fri, 18 Sep 2009 03:51:31 GMT", ; rel="memento"; datetime="Tue, 24 Nov 2009 16:53:01 GMT", ; rel="next memento"; datetime="Tue, 27 Jul 2010 21:44:29 GMT", ; rel="last memento"; datetime="Tue, 27 Jul 2010 21:44:29 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_12_20091124164326_crawl102-c/52_12_20091124165300_crawl101.arc.gz
server-timing: captures_list;dur=0.743885, exclusion.robots;dur=0.025945, exclusion.robots.policy;dur=0.014435, esindex;dur=0.014599, cdx.remote;dur=649.822965, LoadShardBlock;dur=281.339206, PetaboxLoader3.datanode;dur=182.811266, PetaboxLoader3.resolve;dur=155.112524, load_resource;dur=242.476979
x-app-server: wwwb-app219
x-ts: 200
x-tr: 1248
server-timing: TR;dur=0,Tw;dur=333,Tc;dur=1
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
Issues - nex3/ruby-progressbar - GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Description: | Ruby/ProgressBar is a text progress bar library for Ruby. edit |
Sort by:
Priority
Priority
|
Votes
Votes
|
Last Updated
Last Updated
Loading…
-
It can be done with following patch:
diff -r f7a41c02d896 timetable_converter/lib/progressbar.rb --- a/timetable_converter/lib/progressbar.rb Fri May 08 09:57:42 2009 +0200 +++ b/timetable_converter/lib/progressbar.rb Mon May 11 10:28:01 2009 +0200 @@ -131,20 +131,8 @@end def get_width
- # FIXME: I don't know how portable it is.
- default_width = 80
- begin
tiocgwinsz = 0x5413
data = [0, 0, 0, 0].pack("SSSS")
if @out.ioctl(tiocgwinsz, data) >= 0 then
rows, cols, xpixels, ypixels = data.unpack("SSSS")
if cols >= 0 then cols else default_width end
else
default_width
end
- rescue Exception
default_width
- end
- require 'curses'
Curses.init_screen.maxx end
def show
Comments
This feature is coming soon. Sit tight!
I cannot edit the issue (do not know why) so here is the code again:
I'm not really maintaining this; I don't even remember why I made this fork in the first place. But feel free to fork it and work on it if you want.
I just made a github account so I can watch this gem. Should I be looking somewhere else to get updates on it?
Also here is a shorter fix to return the width.
`stty size`.split.last.to_i
I would add the fix myself like you said in your previous post but I have never used any kind of version control before and don't really understand forking to me it seems like it would get messy if people all over where making copies and editing them selves.
This is probably the best place to watch for updates, such as they are (that is, basically non-existent).
I encourage you to read up on git; check out the community book as a start. The forking model actually ends up working quite well.