You are not logged in.

#1 2012-04-11 15:36:54

dialelo
Member
From: Horsens, Denmark
Registered: 2011-09-13
Posts: 10
Website

turses - a Twitter client featuring a sexy curses interface

Lately I've been hacking on a Twitter client for the console based on the work of Nicolas Paris in Tyrs.

My main motivation was to make a more flexible UI and move to a Twitter API backend that covered the complete Twitter API. Lists and
streaming API are not yet supported by turses but, since the new backend implements them, turses will include them in the near
future.

Some of the key features of turses are:

  • Multiple timelines

  • Multi-column view

  • Tweet, Retweet, DM, Favorite, Friendship

  • Search

  • View any user's tweets

  • Thread view

Package in AUR
Source code in GitHub

Any feedback will be appreciated.

Here's a screenshot of turses running on urxvt:

turses_buffers250x250.png

Last edited by dialelo (2012-05-17 13:35:35)


-- Alejandro

Offline

#2 2012-04-11 19:03:01

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: turses - a Twitter client featuring a sexy curses interface

Nice job - it looks good.

Please resize your image to conform to the board guidelines.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2012-04-11 21:04:52

Onyros
Member
From: Lisbon, Portugal
Registered: 2007-10-11
Posts: 307

Re: turses - a Twitter client featuring a sexy curses interface

I'm a tyrs user, and I like your fork - especially because tyrs throws out some error for me whenever I try to read a conversation thread.

Is there a way to add infinite scrolling? Tyrs does this by loading an extra set of tweets after we scroll down.

Good work there smile

Offline

#4 2012-04-11 21:40:01

dialelo
Member
From: Horsens, Denmark
Registered: 2011-09-13
Posts: 10
Website

Re: turses - a Twitter client featuring a sexy curses interface

I'm going to implement fetching older tweets when you scroll to the bottom of the timeline. Thanks for pointing that out.


-- Alejandro

Offline

#5 2012-04-11 21:50:02

Onyros
Member
From: Lisbon, Portugal
Registered: 2007-10-11
Posts: 307

Re: turses - a Twitter client featuring a sexy curses interface

Good news, then! BTW, your keyboard defaults are much saner than Tyrs'. I eventually changed the keys to something I could use, but I remember when I first started using it that I'd retweet whenever I tried to reply. And then it was a PITA to erase that retweet.

I really like the column views, it saves much screen real estate in my case.

Offline

#6 2012-04-12 12:54:31

dialelo
Member
From: Horsens, Denmark
Registered: 2011-09-13
Posts: 10
Website

Re: turses - a Twitter client featuring a sexy curses interface

Thank you for the feedback.

I just pushed a commit that includes fetching new tweets when you scroll up from the top; and older tweets when you scroll down from the bottom. It will be included in the next release.

Last edited by dialelo (2012-04-12 12:54:46)


-- Alejandro

Offline

#7 2012-04-19 06:54:37

milouse
Member
From: Nantes, France
Registered: 2011-08-14
Posts: 16
Website

Re: turses - a Twitter client featuring a sexy curses interface

Hello,

I loved tyrs and will surely love turses, but it remains two bugs which exists yet in tyrs and that I didn't resolved by using turses.

The first is about the open link function. When I hit the o key, nothing happen. As I use a custom install of Aurora in my home directory I suspect turses to not know what browser to use. How can I tell it the path to the Aurora installation ? I try an "export browser=tatata" but it does nothing.

The second is about the classic retweet function. When I hit the E key, turses crashes. I try to export the editor variable (because it's not clear if « editor » refers to the internal new tweet window or an external editor).

Any ideas about these two things ?

Offline

#8 2012-04-19 07:25:11

ntness
Member
From: The World
Registered: 2009-12-29
Posts: 97

Re: turses - a Twitter client featuring a sexy curses interface

Digging this. Have been using tyrs since its release and looks like I'll be doing the same with this. Great work. -- one thing I noticed on a newly created twitter account was that any field containing 0 items (tweets/mentions/etc) produces a Traceback error 'Exception in Thread...' when scroll-down is invoked.


transcend to the fifth abode

Offline

#9 2012-04-19 09:17:24

dialelo
Member
From: Horsens, Denmark
Registered: 2011-09-13
Posts: 10
Website

Re: turses - a Twitter client featuring a sexy curses interface

@milouse

I'm not sure why your browser is not opening. `turses` uses the BROWSER environment variable to invoque a command to open URLs. As you said, you have to put the path to your browser executable in BROWSER and export it. Can you verify that

$ $BROWSER aur.archlinux.org

works for you after that?

The editor is not an external editor. I've just noticed that crashes when trying to retweet manually so I'm going to take a look at that.

@ntness

I solved that bug a few days ago, when I solve the problem that @milouse reported I will push a new release.

Thank you for your comments!


-- Alejandro

Offline

#10 2012-04-20 08:32:37

milouse
Member
From: Nantes, France
Registered: 2011-08-14
Posts: 16
Website

Re: turses - a Twitter client featuring a sexy curses interface

Owwg sorry... My fault: I thought environment variables were case insensitive and just modify browser instead of BROWSER. A maybe quick workaround for guy like me could be to print on the status bar the return status of your system call to BROWSER variable. Because if there is a problem with the BROWSER variable (my case) bash print a message.

In fact I've just discovered the bug tracker on github, where I should post my questions. Sorry too for having a bit polluted this thread.

Thanks for your quick answer and investigation around the classic retweet feature.

Offline

#11 2012-04-22 17:13:48

dialelo
Member
From: Horsens, Denmark
Registered: 2011-09-13
Posts: 10
Website

Re: turses - a Twitter client featuring a sexy curses interface

No problem @milouse. Last version (0.1.4) includes the patch for the manual retweet bug, you can install it from AUR.


-- Alejandro

Offline

#12 2012-05-08 10:02:44

monotiz
Member
Registered: 2007-10-20
Posts: 140

Re: turses - a Twitter client featuring a sexy curses interface

Turses is awesome. Thank you.

I've got a small problem with the instance/class properties. DWM can't recognize turses:

[tmonti@arch32 ~]$ xprop |awk '
>     /^WM_CLASS/{sub(/.* =/, "instance:"); sub(/,/, "\nclass:"); print}
>     /^WM_NAME/{sub(/.* =/, "title:"); print}'
instance: "urxvt"
class: "URxvt"
title: "tmonti@arch32:~"

There is a way to set istance or class to turses?

Thank you.

Last edited by monotiz (2012-05-08 10:03:10)

Offline

#13 2012-05-09 22:24:33

dialelo
Member
From: Horsens, Denmark
Registered: 2011-09-13
Posts: 10
Website

Re: turses - a Twitter client featuring a sexy curses interface

Hi @monotiz.

Thank you for reporting this, I'll take a look at it. Glad you like turses!


-- Alejandro

Offline

#14 2012-05-10 01:04:37

rlevArch
Member
Registered: 2011-12-04
Posts: 35

Re: turses - a Twitter client featuring a sexy curses interface

Not sure why, but I've noticed turses seems to be crash immediately and return to the terminal if I look at my "favorites" or "messages" columns (which appear by default)... is there a log written somewhere or a debug/verbose mode I could use?

Offline

#15 2012-05-10 06:38:24

dialelo
Member
From: Horsens, Denmark
Registered: 2011-09-13
Posts: 10
Website

Re: turses - a Twitter client featuring a sexy curses interface

@rlevArch the 0.1.9 version had that critical bug, I fixed it last night and made a new release. You can find it in AUR.


-- Alejandro

Offline

#16 2012-05-12 22:09:45

dialelo
Member
From: Horsens, Denmark
Registered: 2011-09-13
Posts: 10
Website

Re: turses - a Twitter client featuring a sexy curses interface

monotiz wrote:

I've got a small problem with the instance/class properties. DWM can't recognize turses:

[tmonti@arch32 ~]$ xprop |awk '
>     /^WM_CLASS/{sub(/.* =/, "instance:"); sub(/,/, "\nclass:"); print}
>     /^WM_NAME/{sub(/.* =/, "title:"); print}'
instance: "urxvt"
class: "URxvt"
title: "tmonti@arch32:~"

There is a way to set istance or class to turses?

So far I've managed to set the title:

$ xprop |awk '                                                                         t
     /^WM_CLASS/{sub(/.* =/, "instance:"); sub(/,/, "\nclass:"); print}
     /^WM_NAME/{sub(/.* =/, "title:"); print}'
instance: "urxvt"
class: "URxvt"
title: "turses"

Can DWM recognize turses by its title?


-- Alejandro

Offline

#17 2012-05-13 16:07:46

mjheagle8
Member
From: /home/mjheagle8
Registered: 2009-07-12
Posts: 186

Re: turses - a Twitter client featuring a sexy curses interface

monotiz wrote:

Can DWM recognize turses by its title?

yes, see the third column in rules[] (in your config.h)


Desktop/Laptop - DWM :: VM - screen
Registered Linux User Number 483137 :: Victory! :: GitHub

Offline

#18 2012-05-30 18:25:03

endeavor
Member
Registered: 2011-10-28
Posts: 9

Re: turses - a Twitter client featuring a sexy curses interface

So, I doubt this is a turses issue, but for some reason in my urxvt terminal turses looks like this:

http://shells.myw3b.net/~endeavor/files/turses.png

When I would like it to look like the screenshot on the github page: https://a248.e.akamai.net/camo.github.c … 742e706e67

Any thoughts?

Offline

#19 2012-05-30 19:36:41

dialelo
Member
From: Horsens, Denmark
Registered: 2011-09-13
Posts: 10
Website

Re: turses - a Twitter client featuring a sexy curses interface

@endeavor what font are you using? I'm using Terminus and it supports all the characters used in turses.

I've just had a similar issue due to a missconfiguration in

/etc/locale.gen

; the API wouldn't even authenticate reporting a "unsupported locale setting".


-- Alejandro

Offline

#20 2012-05-30 19:57:46

endeavor
Member
Registered: 2011-10-28
Posts: 9

Re: turses - a Twitter client featuring a sexy curses interface

@dialelo I have no idea what font I'm using. How do I tell?

Offline

#21 2012-05-31 08:12:10

dialelo
Member
From: Horsens, Denmark
Registered: 2011-09-13
Posts: 10
Website

Re: turses - a Twitter client featuring a sexy curses interface

@endeavor try with:

$ xrdb -query | grep font

-- Alejandro

Offline

Board footer

Powered by FluxBB