From Wikipedia:
Dream On is an American adult-themed situation comedy about the family life, romantic life, and career of Martin Tupper, a divorced New York City book editor played by Brian Benben. The show distinctively interjected clips from older black and white television series to punctuate Tupper's feelings or thoughts. It was created by Marta Kauffman and David Crane, the team who would later create the TV show Friends. It ran for six seasons on HBO between 1990 and 1996.
The show centered on Martin Tupper's (Brian Benben) life in an apartment in New York City with his teenage son, and relating to his ex-wife, while trying to date other women and succeed as an editor for a small book publisher with Toby, his brassy secretary. Judith, his ex-wife, went on to marry Dr. Richard Stone - the never-seen (until the end of the series), most-impossibly-successful man on the planet (astronaut, brain surgeon, the fifth Beatle and consultant to the Pope); despite Martin's undying love for Judith, he could never compete with the legendary Dr. Stone. The opening indicates Martin's mother was "friendly", and always parked him in front of the TV, hence the association of sex with his memories. The show was notable for its frequent use of clips from old movies and TV shows to express Martin's inner life and feelings, which lent it much of its quirky appeal, reminding viewers about the impact of TV on their consciousness. The show was also significant for being one of the first American sitcoms to use uncensored profanity and nudity.
Dream On first aired July 1990 on HBO, and was cancelled by HBO in March 1996. One season of the show, with language and nudity edited for broadcast, aired in prime time on the Fox Network. This bowdlerized version was later made available in syndication.